package com.guigu.controller.design;


import com.guigu.pojo.design.DProductUse;
import com.guigu.service.design.DProductUseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-18
 */
@Controller
@RequestMapping("/d-product-use")
public class DProductUseController {

    @Autowired
    private DProductUseService dProductUseService;

    @GetMapping("/initialUse")
    @ResponseBody
    public ArrayList<DProductUse> initialUse() {
        ArrayList<DProductUse> dProductUses = dProductUseService.selectAllUse();
        return dProductUses;
    }

}

